package com.guinea.skoru.service;
// Generated 2011-3-19 15:17:31 by Hibernate Tools 3.4.0.Beta1

import java.io.Serializable;
import java.util.List;

import com.guinea.core.orm.hibernate.HibernateDao;
import com.guinea.core.service.CRUDManager;
import com.guinea.skoru.dao.SkoruImageDao;
import com.guinea.skoru.entity.SkoruImage;

public class SkoruImageManager extends CRUDManager {

	private SkoruImageDao skoruImageDao;

	public HibernateDao getEntityDao() {
		return getSkoruImageDao();
	}

	public SkoruImage getSkoruImage(Serializable id) {
		return (SkoruImage)getSkoruImageDao().get(id);
	}

	public SkoruImageDao getSkoruImageDao() {
		return skoruImageDao;
	}

	public void setSkoruImageDao(SkoruImageDao skoruImageDao) {
		this.skoruImageDao = skoruImageDao;
	}

	public List findImages(Long regionId){
		return getSkoruImageDao().find("from SkoruImage i where i.regionId = ? and i.status = '1'",new Object[]{regionId});
	}
}
